<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
    	$sql = "select * from user where id={$_SESSION['id']}";
        
    	$res = M()->query($sql);
    	$res = current($res);
    	$this->assign('res',$res);
        $this->display();
    }
    public function welcome()
    {
    	$this->display();
    }
}